<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>150-便利对象和对象基本使用.html</title>
</head>
<body>
	
</body>
<script>
	var obj = {
		width:400,
		height:400,
		opacity:100
	}
	// console.log(obj)
	for(var attr in obj){
		console.log(attr,obj[attr]);
	}
</script>
</html>